package org.cskt.sl.sys.service.impl;

import org.cskt.sl.sys.dao.BaseInfoMapper;
import org.cskt.sl.sys.entity.BaseInfo;
import org.cskt.sl.sys.example.BaseInfoExample;
import org.cskt.sl.sys.service.BaseInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BaseInfoServiceImpl implements BaseInfoService {

	@Autowired
	private BaseInfoMapper baseInfoMapper;
	
	@Override
	public int countByExample(BaseInfoExample example) {
		// TODO Auto-generated method stub
		return baseInfoMapper.countByExample(example);
	}

	@Override
	public int deleteBaseInfoById(Integer bid) {
		// TODO Auto-generated method stub
		return baseInfoMapper.deleteByPrimaryKey(bid);
	}

	@Override
	public int addBaseInfo(BaseInfo record) {
		// TODO Auto-generated method stub
		return baseInfoMapper.insertSelective(record);
	}

	@Override
	public int updateBaseInfoById(BaseInfo record) {
		// TODO Auto-generated method stub
		return baseInfoMapper.updateByPrimaryKey(record);
	}

}
